<div class="groups view">
<h2><?php  __('Group');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $group['Group']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Group', true), array('action' => 'edit', $group['Group']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Group', true), array('action' => 'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Groups', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Group', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users Equipos Operativos', true), array('controller' => 'users_equipos_operativos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Users Equipos Operativo', true), array('controller' => 'users_equipos_operativos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Users');?></h3>
	<?php if (!empty($group['User'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Primer Nombre'); ?></th>
		<th><?php __('Segundo Nombre'); ?></th>
		<th><?php __('Primer Apellido'); ?></th>
		<th><?php __('Segundo Apellido'); ?></th>
		<th><?php __('Tipo Documento'); ?></th>
		<th><?php __('Identificacion'); ?></th>
		<th><?php __('Group Id'); ?></th>
		<th><?php __('Genero'); ?></th>
		<th><?php __('Direccion'); ?></th>
		<th><?php __('Telefono'); ?></th>
		<th><?php __('Correo'); ?></th>
		<th><?php __('Fecha Vinculacion'); ?></th>
		<th><?php __('Ultimo Acceso'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th><?php __('Password'); ?></th>
		<th><?php __('Username'); ?></th>
		<th><?php __('Perfil'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['User'] as $user):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $user['id'];?></td>
			<td><?php echo $user['primer_nombre'];?></td>
			<td><?php echo $user['segundo_nombre'];?></td>
			<td><?php echo $user['primer_apellido'];?></td>
			<td><?php echo $user['segundo_apellido'];?></td>
			<td><?php echo $user['tipo_documento'];?></td>
			<td><?php echo $user['identificacion'];?></td>
			<td><?php echo $user['group_id'];?></td>
			<td><?php echo $user['genero'];?></td>
			<td><?php echo $user['direccion'];?></td>
			<td><?php echo $user['telefono'];?></td>
			<td><?php echo $user['correo'];?></td>
			<td><?php echo $user['fecha_vinculacion'];?></td>
			<td><?php echo $user['ultimo_acceso'];?></td>
			<td><?php echo $user['created'];?></td>
			<td><?php echo $user['modified'];?></td>
			<td><?php echo $user['password'];?></td>
			<td><?php echo $user['username'];?></td>
			<td><?php echo $user['perfil'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Users Equipos Operativos');?></h3>
	<?php if (!empty($group['UsersEquiposOperativo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Group Id'); ?></th>
		<th><?php __('Equipos Operativo Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['UsersEquiposOperativo'] as $usersEquiposOperativo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $usersEquiposOperativo['id'];?></td>
			<td><?php echo $usersEquiposOperativo['user_id'];?></td>
			<td><?php echo $usersEquiposOperativo['group_id'];?></td>
			<td><?php echo $usersEquiposOperativo['equipos_operativo_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'users_equipos_operativos', 'action' => 'view', $usersEquiposOperativo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'users_equipos_operativos', 'action' => 'edit', $usersEquiposOperativo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'users_equipos_operativos', 'action' => 'delete', $usersEquiposOperativo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $usersEquiposOperativo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Users Equipos Operativo', true), array('controller' => 'users_equipos_operativos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
